﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CanvasEx.DrawCore
{
    class DrawPoint : DrawObject
    {
        Point point;
        EllipseGeometry ellipse;
        double size = 0.5;
        double scaleLevel = 1.1;
        public DrawPoint(Painter p, Point point)
            : base(p)
        {
            this.point = point;
            ellipse = new EllipseGeometry(point, size, size);
        }
        public override Geometry GetGeometry()
        {
            return ellipse;
        }
        public override bool InGraph(Point Location, double SelectAccuracy)
        {
            if (DrawHelper.Getdistance(Location, point) > SelectAccuracy)
                return false;
            else
                return true;
        }
        public override List<Point> GetHotSpot()
        {
            return new List<Point>() { point };
        }

        private void Point_MouseWheel(object sender, MouseWheelEventArgs e)
        {

        }

    }
}
